package meituan;

import java.util.Scanner;

public class PrintString {
	String s;
	String s1;
	boolean s2;
	public void print(){
		Scanner cs=new Scanner(System.in);
		int a;
		a=cs.nextInt();
		for(int i=0;i<a;i++){
			s=cs.next();
		}
		int b=cs.nextInt();
		for(int j=0;j<b;j++){
			s1=cs.next();
		}
//		if((s=cs.next())==(s1=cs.next())){
//			s2=(s=cs.next())==(s1=cs.next());
//			System.out.println(s2);
//		}
	}
	public static void main(String[] args) {
		PrintString ps=new PrintString();
		ps.print();
	}
}
